const express = require('express')
const router = express.Router()
const shopController = require('../controllers/shopController')

router
  // 根据省份和城市获取有这个类型并且没被租借的车
  .get('/shopByAddress', shopController.getShopByAddress)
  // 获取所有门店
  .get('/', shopController.getShop)
  // 添加门店
  .post('/', shopController.addShop)
  // 修改门店信息
  .put('/', shopController.updateShop)
  // 删除门店
  .delete('/', shopController.deleteShop)

module.exports = router
